package com.topisv.tms.rest.qimen.qmentity.request.deliveryorder;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 发货单实体
 *  Date          Author       Version       Description
 * ----------------------------------------------------------
 *  2015-5-8      CC            1.0           Create
 */
@XmlRootElement(name = "request")
@XmlAccessorType(XmlAccessType.FIELD)
public class DeliveryOrderRequest {
    
    @Valid
    @NotNull
	@XmlElement(name = "deliveryOrder")
	private DeliveryOrder DeliveryOrder;
    
    @Valid
    @NotNull
	@XmlElementWrapper(name = "orderLines")
	@XmlElement(name = "orderLine")
	private List<DeliveryOrderItem> deliveryOrderItems;

	public DeliveryOrder getDeliveryOrder() {
		return DeliveryOrder;
	}

	public void setDeliveryOrder(DeliveryOrder deliveryOrder) {
		DeliveryOrder = deliveryOrder;
	}

	public List<DeliveryOrderItem> getDeliveryOrderItems() {
		return deliveryOrderItems;
	}

	public void setDeliveryOrderItems(List<DeliveryOrderItem> deliveryOrderItems) {
		this.deliveryOrderItems = deliveryOrderItems;
	}
}
